//
//  ViewController.swift
//  demo1
//
//  Created by lijiongjiong on 2017/8/1.
//  Copyright © 2017年 infoljj. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        var str = "A"
        let c1 = {[str] in
            print("I love \(str)")
        }
        
        let c2 = {
            print("\nI love \(str)")
        }
        
        str = "iOS"
        c1()
        c2()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

